# for number in range(1, 10):
#   print(number)

class MyRange:
  def __init__(self, start, end):
    self.start = start
    self.end = end
    self.current = start

  def __iter__(self):
    return self

  def __next__(self):
    if self.current < self.end:
      number = self.current 
      self.current += 1 
      return number
    raise StopIteration  


first_range = MyRange(1, 10)
for number in first_range:
  print(number) # 0...9 